<?php
namespace app\admin\controller;
use think\Controller;
use think\request;
use think\facade\Db;
class Base extends Controller{
	public function _initialize(){
	    session("url",request()->url());
		if(!session('user_id')){
			$redirect_uri="https://www.wuye.zfbzhsq.com/admin/callback/getuser";
			$url="https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2017082608391103&scope=auth_user&redirect_uri=$redirect_uri";
			header("Location:".$url);	
		}
	}
	
}